<?php
class TestController extends Crb_Controller
{

    public function preDispatch()
    {
        parent::preDispatch();
        $this->view->layout()->setLayout('admin');
    }

    public function indexAction()
    {
        $this->setNoRender();
        $this->disableLayout();
        /*$ip = $this->_getParam('ip', $_SERVER['REMOTE_ADDR']);
        $location = GeoLocation::locate($ip);
        echo "<pre>"; 
        print_r($location);
        echo "</pre>";*/
        
        $feeder = new Feeder();
        $feeder->send();
        
        
    }
    
    
    
public function clearAction()
    {
        $this->setNoRender();
        
        $lucene = new Search_Index();
        
        echo "<pre>";
        $lucene->clear();
        $lucene->getInfo();
        echo "</pre>";
    }
}




